<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>全部文章</title>
  <style>
    body {
      font-family: 'Arial', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f9f9f9;
      color: #333;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
      background-color: #fff;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
    }

    h1 {
      text-align: center;
      color: #333;
      margin-bottom: 20px;
    }

    .section {
      padding: 20px;
      border-radius: 8px;
      background-color: #fff;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    h2 {
      color: #333;
      border-bottom: 2px solid #eee;
      padding-bottom: 10px;
      margin-bottom: 20px;
    }

    .blog-posts {
      list-style: none;
      padding: 0;
    }

    .blog-posts li {
      margin-bottom: 20px;
      padding: 15px;
      background-color: #fafafa;
      border-radius: 6px;
      transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    }

    .blog-posts li:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .blog-posts a {
      text-decoration: none;
      color: #007BFF;
      font-size: 24px;
      margin-bottom: 10px;
      display: block;
    }

    .blog-posts p {
      font-size: 16px;
      color: #666;
    }

    .footer {
      padding: 20px;
      text-align: center;
      background-color: #333;
      color: white;
      margin-top: 20px;
    }
  </style>
</head>
<body>
<div class="container">
  <h1>全部文章</h1>
  <div class="blog-section">
    <div class="section">
      <h2>文章列表</h2>
      <ul class="blog-posts" th:each="article : ${articles}">
        <li>
          <a th:href="@{/articles/{id}(id=${article.id})}" th:text="${article.title}"></a>
          <p th:text="${article.updatetime} + ' | 作者: ' + ${article.username}"></p>
        </li>
      </ul>
    </div>
    <a class="back-home" href="/login/goToBlog">返回主页</a>
  </div>
</div>
<!-- 底部 -->
<div class="footer">
  <p>版权所有 © 2024 博客页面</p>
</div>
</body>
</html>